package com.ruoyi.jihuo.config;

import org.apache.lucene.analysis.Analyzer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.wltea.analyzer.lucene.IKAnalyzer;

@Configuration
public class IKAnalyzerConfig {
    @Bean
    public Analyzer ikAnalyzer() {
        return new IKAnalyzer(true); // true 表示使用停用词过滤
    }
}